﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Places.master" AutoEventWireup="false" CodeFile="PlacesHome.aspx.vb" Inherits="PlacesHome" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h3>Places home page</h3>
    <asp:GridView ID="dgPlaces" runat="server" AutoGenerateColumns="False" 
    DataSourceID="DSPlaces">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                SortExpression="ID" />
            <asp:BoundField DataField="Tag" HeaderText="Tag" SortExpression="Tag" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="DSPlaces" runat="server" 
    ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
    ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
    SelectCommand="SELECT [ID], [Tag] FROM [viewPlaceTag]"></asp:SqlDataSource>
</asp:Content>

